package com.lt.flashcard.webservice.filter;

import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;

import org.zkoss.zkplus.hibernate.HibernateUtil;

import com.sun.jersey.spi.container.ContainerRequest;
import com.sun.jersey.spi.container.ContainerRequestFilter;

@SuppressWarnings("deprecation")
public class RestfulRequestFilter implements ContainerRequestFilter {
    @Context
    UriInfo uriInfo;
    @Override
    public ContainerRequest filter(ContainerRequest request) {
        HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();
        return request;
    }

}
